home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / source.exe / POSIX / GREP / MAKEFI~1.UNI < prev    next >
Text File  |  1991-09-28  |  1KB  |  45 lines

  1. # optional items for ENV:
  2. # -I.            use regexp.h in current directory, not /usr/include.
  3. # -DEGREPOLD=path    location of std egrep (normally /usr/bin/egrep).
  4. # -DGREPOLD=path    location of std grep (normally /bin/grep).
  5. # -DFGREPOLD=path    location of std fgrep (normally /usr/bin/fgrep).
  6. # -Dstrrchr=rindex, -Dstrchr=index    for troglodytes.
  7. # -DSLOWSYS        invoke xread() for system time quirk on PDP, others? 
  8. # -DNOKANJI        default is for Japanese Unix.  undef only for raw
  9. #             parity-marked search capability, not standard w/grep.
  10. # -DCHINESE        for systems using EUC Chinese2 codes
  11.  
  12. ENV= -I.
  13.  
  14. # warning:  do not overwrite existing [ef]?grep family with $BIN path choice
  15. BIN= /usr/local
  16.  
  17. # optional items for OBJ:
  18. # misc.o        for V7 or BSD 4.2 systems w/no getopt(3) or string(3)
  19. #              also contains xread() per above.
  20. # regexp.o        if Henry Spencer's regexp(3) is not installed
  21. #            V8 people -- your regexp.h won't do
  22.  
  23. OBJ= regexp.o
  24.  
  25. CFLAGS= -O $(ENV) 
  26. #CFLAGS= -O -i $(ENV)    uncomment this line for PDP-11
  27.  
  28. regexp:    ; make -f Makefile.regexp r; make egrep
  29.  
  30. egrep:    egrep.o regerror.o
  31.     cc $(CFLAGS) egrep.o regerror.o -o egrep $(OBJ)
  32.     rm -f grep fgrep
  33.     ln egrep grep
  34.     ln egrep fgrep
  35.  
  36. install: 
  37.     rm -f $(BIN)/*grep
  38.     strip egrep
  39.     mv egrep $(BIN)
  40.     ln $(BIN)/egrep $(BIN)/grep
  41.     ln $(BIN)/egrep $(BIN)/fgrep
  42.  
  43. clean:
  44.     rm *.o ./egrep ./grep ./fgrep ./try
  45.